package de.fhhof.robot.control.cmd;

public class CmdInvoker implements Runnable{

	private AbstractCommand cmd;
	
	public CmdInvoker(AbstractCommand cmd) {
		this.cmd = cmd;
	}
	
	@Override
	public void run() {
		System.out.println("Executing command: "+ this.cmd.getMessage().getCommand());
		this.cmd.executeCommand();
	}
	
	
}
